package com.bw.login.api

import com.bw.common.entity.BaseRes
import com.bw.common.entity.UserEntity
import retrofit2.http.POST
import retrofit2.http.Query

interface LoginApiServer {
    @POST("/api/user/login")
    suspend fun loginToServer(@Query("username")username:String,@Query("password")password:String):BaseRes<UserEntity>
    @POST("/api/user/register")
    suspend fun registerToServer(@Query("username") userName: String, @Query("password") password: String): BaseRes<UserEntity>

}